package com.colabo.j2ee.web.oaf.security.model;

import java.util.Date;

import com.colabo.j2ee.web.core.vo.RecordObject;


public class IPArcGrantVO extends RecordObject {
	private static final long serialVersionUID = 1005979146357771649L;

	private String grantky;
	private String principalCode;
	private String principalType;
	private RecordObject principal;
	private String resourceCode;
	private String resourceType;
	private RecordObject resource;
	private IPArcChannelVO channel = new IPArcChannelVO();
	private Date validateTime;
	private Date expireTime;

	public String getGrantky() {
		return grantky;
	}

	public void setGrantky(String grantky) {
		this.grantky = grantky;
	}

	public String getPrincipalCode() {
		return principalCode;
	}

	public void setPrincipalCode(String principalCode) {
		this.principalCode = principalCode;
	}

	public String getPrincipalType() {
		return principalType;
	}

	public void setPrincipalType(String principalType) {
		this.principalType = principalType;
	}

	public RecordObject getPrincipal() {
		return principal;
	}

	public void setPrincipal(RecordObject principal) {
		this.principal = principal;
	}

	public String getResourceCode() {
		return resourceCode;
	}

	public void setResourceCode(String resourceCode) {
		this.resourceCode = resourceCode;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public RecordObject getResource() {
		return resource;
	}

	public void setResource(RecordObject resource) {
		this.resource = resource;
	}

	public IPArcChannelVO getChannel() {
		return channel;
	}

	public void setChannel(IPArcChannelVO channel) {
		this.channel = channel;
	}

	public Date getValidateTime() {
		return validateTime;
	}

	public void setValidateTime(Date validateTime) {
		this.validateTime = validateTime;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	// @Override
	public String getObjectId() {
		return grantky;
	}
}
